<template>
  <div class="home">
<!--    <img alt="Vue logo" src="../assets/logo.png">

    <input type="text" id="" :value="info" />
    <button type="button" @click="getInfo">test info</button>-->
    <Applicantion  />
  </div>
</template>

<script>
// @ is an alias to /src
import Applicantion from '@/components/Applicantion.vue'

import axios from 'axios';
export default {
  name: 'Home',
  components: {
    Applicantion
  },
  data() {
    return {
      num: 1,
      info: ""
    }
  },
  methods:{
    add(){
      this.num+=1
    },
    getInfo(){
      axios
          .get('api/license/getServerInfos')
          .then((res) => {
            let _data=res.data;
            this.info = _data;
          })
          .catch((err) => {
            console.log(err);
          });
/*      this.$ajax({
        method: 'get',
        // url:'../static/test/getInfo.json', //<---本地地址
        url: 'api/license/getServerInfos',
      }).then(response=>{
        let _data=response.data;
        this.info = _data;
      }).catch(function(err){
        console.log(err)
      })*/
    }
  }
}
</script>
